package com.budwk.app.sqfwDoc.models;

import com.budwk.starter.common.openapi.annotation.ApiModel;
import lombok.Data;
import lombok.experimental.Accessors;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;
import org.postgresql.util.PGobject;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * @author ZY.Wang
 * @since 2023/12/5
 */
@Data
@Accessors(chain = true)
@Table("shequ.sqfw_template_config")
@Comment("社区业务字段配置")
@ApiModel(description = "社区业务字段配置")
public class SqfwTemplateConfig {

    @Name
    @PrevInsert(uu32 = true)
    @Column("id")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String id;

    @Column("config_name")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String configName;

    @Column("config_code")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String configCode;

    @Column("config_json")
    @ColDefine(type = ColType.TEXT)
    private String configJson;

    @Column("vis_json")
    @ColDefine(type = ColType.TEXT)
    private String visJson;

    @Column("server_code_config")
    @ColDefine(type = ColType.TEXT)
    private String serverCodeConfig;

    @Column("binding_status")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String bindingStatus;

    @Column("version")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String version;

    @Column("create_by")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String createBy;

    @Column("create_time")
    @ColDefine(type = ColType.DATETIME)
    private Date createTime;

    @Column("update_by")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String updateBy;

    @Column("update_time")
    @ColDefine(type = ColType.DATE)
    private Date updateTime;

    @Column("mark")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String mark;

    @Column("from_copy_id")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String fromCopyId;
}
